home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Software of the Month Club / Amiga Latest & Greatest Volume 225 (1995)(SOMC)(Disk 2 of y)[SMCxxxC30Ix].zip / Amiga Latest & Greatest Volume 225 (1995)(SOMC)(Disk 2 of y)[SMCxxxC30Ix].adf / AppAssign31 / Install_English < prev    next >
Text File  |  1996-01-26  |  7KB  |  331 lines

  1. ;
  2. ; $VER: Installation de AppAssign v3.1 (26.1.1996)
  3. ;
  4. ;
  5. ;
  6.  
  7.         (set UserLevel.old @user-level)
  8.  
  9. ; Initialisation des messages.
  10.  
  11.         (set Language 16)
  12.  
  13.         (set #WrongKickStart "\nAppAssign need OS2.04+")
  14.  
  15.  
  16.  
  17. ; S'assurer que l'on utilise un KickStart >= à 2.04.
  18.  
  19.         (if (< (/ (getversion) 65536) 37)
  20.           (abort #WrongKickStart)
  21.         )
  22.  
  23.  
  24. (set LangueHelp "Select which language you want the documentation in.")
  25.  
  26. (set IconHelp "What kind of icons do you want:\n\n- 4 colors:          Standards icons\n- 8 colors MagicWB : Standard MagicWB\n- NewIcon :          Standard NewIcon")
  27.  
  28. (set bguiHelp "The bgui.library makes it easier to create a nice GUI.\n\nbgui.library   (C) 1993-1995 Jan van den Baard")
  29.  
  30. (set Refresh  "Choose refresh mode of window")
  31. (set Aspect   "Choose size of borders:\n\n- AutoAspect:  Keep the screen-aspect-ratio\n- Thin:        Force thin mode\n- Standard:    Like the system")
  32. (set Frame    "Choose buttons look")
  33. (set WindowPos  "Where windows should open its GUI ?")
  34. (set NewLook    "NewLook mode will create a white listview scroller")
  35.  
  36. (set BufferRP   "Allow the use of RastPort buffer, for display the GUI as one block. But under RTG the display will be slower.\n\nUnder RTG set NO")
  37.  
  38.  
  39.  
  40. ;
  41. ; Répertoire de destination
  42. ; *************************
  43. ;
  44.  
  45. (set Path.source (pathonly @icon) )
  46.  
  47. (set  Path.dest
  48.         (askdir
  49.                 (prompt "\nSelect or create a directory to install AppAssign in.\n")
  50.                 (help @askdir-help)
  51.                 (default "Sys:Tools/Commodities")
  52.         )
  53. )
  54.  
  55.  
  56. ; Copie de l'executable
  57. ; **********************
  58. (copyfiles
  59.         (prompt "Copy of AppAssign")
  60.         (help @copyfiles-help)
  61.         (source Path.source)
  62.         (dest Path.dest)
  63.         (choices "AppAssign" "AppAssign.info")
  64. )
  65.  
  66.  
  67.  
  68. ; Copie de la documentation
  69. ; *************************
  70. (set Doc (askchoice
  71.             (prompt "Documentation of AppAssign")
  72.             (choices "French" "English" )
  73.             (help LangueHelp)
  74.             (default 1)
  75.  
  76.     )
  77. )
  78.  
  79.  
  80.     (if (= Doc 0)
  81.         (copyfiles
  82.             (source "AppAssign_FR.guide")
  83.             (dest Path.dest)
  84.             (newname "AppAssign.guide")
  85.             (infos)
  86.         )
  87.     )
  88.  
  89.     (if (= Doc 1)
  90.         (copyfiles
  91.             (source "AppAssign_ENG.guide")
  92.             (dest Path.dest)
  93.             (newname "AppAssign.guide")
  94.             (infos)
  95.         )
  96.     )
  97.  
  98.  
  99.  
  100.  
  101. ; On copie les icônes
  102. ; *******************
  103. (set Icon (askchoice
  104.             (prompt "What sort of icons do you want ?")
  105.             (choices "4 couleurs" "MagicWB" "NewIcon")
  106.             (help IconHelp)
  107.     )
  108. )
  109.  
  110.     ; MagicWB ?
  111.     ; *********
  112.     (if (= Icon 1)
  113.         (
  114.         (copyfiles
  115.             (source "Icons/EXE_MagicWb.info")
  116.             (dest Path.dest)
  117.             (newname "AppAssign.info")
  118.         )
  119.  
  120.         (copyfiles
  121.             (source "Icons/Guide_MagicWb.info")
  122.             (dest Path.dest)
  123.             (newname "AppAssign.guide.info")
  124.         )
  125.         )
  126.     )
  127.  
  128.     ; NewIcon ?
  129.     ; *********
  130.     (if (= Icon 2)
  131.         (
  132.         (copyfiles
  133.             (source "Icons/EXE_NewIcon.info")
  134.             (dest Path.dest)
  135.             (newname "AppAssign.info")
  136.         )
  137.  
  138.         (copyfiles
  139.             (source "Icons/Guide_NewIcon.info")
  140.             (dest Path.dest)
  141.             (newname "AppAssign.guide.info")
  142.         )
  143.         )
  144.     )
  145.  
  146.  
  147. ; Copie de la bgui.library
  148. ; ************************
  149. (copylib
  150.     (prompt "Copy of the bgui.library")
  151.     (source "libs/bgui.library")
  152.     (dest "Libs:")
  153.     (help bguiHelp)
  154.     (confirm)
  155. )
  156.  
  157.  
  158.  
  159.  
  160. ; Parametrage du programme
  161. ; ************************
  162.  
  163. ; On prend le chemin de destination et le nom
  164. (set DestName (tackon Path.dest "AppAssign"))
  165.  
  166.  
  167. ; ***********
  168. ; * REFRESH *
  169. ; ***********
  170. (set Icon (askchoice
  171.             (prompt "What kind of refresh do you want ?")
  172.             (choices "SmartRefresh" "SimpleRefresh")
  173.             (help Refresh)
  174.     )
  175. )
  176.  
  177.     (if (= Icon 0)
  178.         (tooltype
  179.             (settooltype "SMARTREFRESH" "YES")
  180.             (dest DestName)
  181.         )
  182.     )
  183.  
  184.     (if (= Icon 1)
  185.         (tooltype
  186.             (settooltype "SMARTREFRESH" "NO" )
  187.             (dest DestName)
  188.         )
  189.     )
  190.  
  191. ; **********
  192. ; * ASPECT *
  193. ; **********
  194. (Set Icon (askchoice
  195.             (prompt "What aspect do you want for the GUI ?")
  196.             (choices "Automatic (following screen-ratio)" "Thin" "Standard")
  197.             (help Aspect)
  198.         )
  199. )
  200.     (if (= Icon 0)
  201.         (tooltype
  202.             (settooltype "ASPECT" "AUTO")
  203.             (dest DestName)
  204.         )
  205.     )
  206.  
  207.     (if (= Icon 1)
  208.         (tooltype
  209.             (settooltype "ASPECT" "THIN")
  210.             (dest DestName)
  211.         )
  212.     )
  213.  
  214.     (if (= Icon 2)
  215.         (tooltype
  216.             (settooltype "ASPECT" "STANDARD")
  217.             (dest DestName)
  218.         )
  219.     )
  220.  
  221. ; *********
  222. ; * FRAME *
  223. ; *********
  224. (Set Icon (askchoice
  225.             (prompt "What kind of frame do you want ?")
  226.             (choices "Standard" "XEN")
  227.             (help Frame)
  228.         )
  229. )
  230.     (if (= Icon 0)
  231.         (tooltype
  232.             (settooltype "FRAME" "STANDARD")
  233.             (dest DestName)
  234.         )
  235.     )
  236.  
  237.     (if (= Icon 1)
  238.         (tooltype
  239.             (settooltype "FRAME" "XEN")
  240.             (dest DestName)
  241.         )
  242.     )
  243.  
  244.  
  245. ; *******************
  246. ; * NEWLOOKSCROLLER *
  247. ; *******************
  248. (Set Icon (askchoice
  249.             (prompt "Do you want the NewLook mode for Listview scroller ?")
  250.             (choices "Yes" "No")
  251.             (default 1)
  252.             (help NewLook)
  253.         )
  254. )
  255.     (if (= Icon 0)
  256.         (tooltype
  257.             (settooltype "NEWLOOKSCROLLER" "YES")
  258.             (dest DestName)
  259.         )
  260.     )
  261.  
  262.     (if (= Icon 1)
  263.         (tooltype
  264.             (settooltype "NEWLOOKSCROLLER" "NO")
  265.             (dest DestName)
  266.         )
  267.     )
  268.  
  269.  
  270. ; ******************
  271. ; * WINDOWPOSITION *
  272. ; ******************
  273. (Set Icon (askchoice
  274.             (prompt "Where do you want the program open its GUI ?")
  275.             (choices "Center of screen" "On the mouse" "On the top-left")
  276.             (help WindowPos)
  277.         )
  278. )
  279.     (if (= Icon 0)
  280.         (tooltype
  281.             (settooltype "WINDOWPOSITION" "CENTERSCREEN")
  282.             (dest DestName)
  283.         )
  284.     )
  285.  
  286.     (if (= Icon 1)
  287.         (tooltype
  288.             (settooltype "WINDOWPOSITION" "CENTERMOUSE")
  289.             (dest DestName)
  290.         )
  291.     )
  292.  
  293.     (if (= Icon 2)
  294.         (tooltype
  295.             (settooltype "WINDOWPOSITION" "TOPLEFT")
  296.             (dest DestName)
  297.         )
  298.     )
  299.  
  300. ; **************
  301. ; * NoBufferRP *
  302. ; **************
  303. (Set Icon (askchoice
  304.             (prompt "Use option BufferRP ?")
  305.             (choices "Yes" "No")
  306.             (default 1)
  307.             (help BufferRP)
  308.         )
  309. )
  310.     (if (= Icon 0)
  311.         (tooltype
  312.             (settooltype "NOBUFFERRP" "NO")
  313.             (dest DestName)
  314.         )
  315.     )
  316.  
  317.     (if (= Icon 1)
  318.         (tooltype
  319.             (settooltype "NOBUFFERRP" "YES")
  320.             (dest DestName)
  321.         )
  322.     )
  323.  
  324.  
  325. (message "\nPlease read documentation for other options")
  326.  
  327.  
  328. (set @default-dest Path.dest )
  329.         (exit)
  330.  
  331.